package submarinebattle;

import javax.swing.*;

/** 水雷 */
public class Mine extends SeaObject  {
    public Mine(int x,int y){
        super(11,11,x,y,1);
    }

    public void move(){
        setY(getY()-getSpeed());
    }

    public ImageIcon getImage(){
        return Images.mine;
    }

    public boolean isOutOfBounds(){
        return this.getY()<=150-this.getHeight();
    }

}
